<include file="Public/header"/>

		<div id="app">
			<!-- sidebar -->
			<include file="Public/left"/>
			<!-- / sidebar -->
			<div class="app-content">
				<!-- start: TOP NAVBAR -->
				<include file="Public/headernav"/>
				<!-- end: TOP NAVBAR -->
				<div class="main-content" >
					<div class="wrap-content container" id="container">
						<!-- start: PAGE TITLE -->
						<section id="page-title">
							<div class="row">
								<div class="col-sm-8">
									<h1 class="mainTitle">{$msgtitle}</h1>
									<span class="mainDescription">&nbsp;分类管理</span>
								</div>
								<nav id="cl-effect-10" class="links cl-effect-10">
									<a data-hover="新增" href="{:U('admin/goodstype/attrbute_edit')}"><span>新增</span></a>
							</div>
						</section>
						<!-- end: PAGE TITLE -->
						<!-- start: YOUR CONTENT HERE -->
<style type="text/css">
	.class_hidden{display:none;}

</style>
						<!-- 搜索类型开始-->
						<div class="row">
							<div class="col-lg-12 col-md-12 margin-top-20" >
								<div class="panel panel-white">
									<div class="panel-heading">
										<h5 class="panel-title">筛选{$cat_id}</h5>
									</div>
									<!-- 筛选查询 -->
									<form role="form" class="form-inline" >
										<div class="panel-body">
											<div class="form-group">
												<input type="text" name="attr_name" id="attr_name" value="{$_GET.attr_name}" placeholder="属性名称" class="form-control">
											</div>
											<div class="form-group">
												<select class="form-control valid" id="dropdown" name="cat_id">
													<option value="0">-所有商品类型-</option>
													<volist name="typeList" id="v">
														<option value="{$v.cat_id}" <if condition="$_GET.cat_id eq $v['cat_id']">selected</if>>{$v.cat_name}</option>
													</volist>
												</select>
											</div>
											<button class="btn btn-primary" type="submit" id="submit">
												提交
											</button>
										</div>
									</form>
								</div>
							</div>
						</div>


						<!-- 搜索类型结束-->


						<table class="table table-hover" id="sample-table-1">
				<thead>
					<tr>
						<th>属性编号</th>
						<th>属性名称</th>
						<th>商品类型</th>
						<th>属性值录入方式</th>
						<th width="50%">可选值列表</th>
						<th>排序</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<volist name="attrList" id="v">
					<tr>
						<td>#</td>
						<td>{$v.attr_name}</td>
						<td>{$v.cat_name}</td>
						<td>
							<if condition="$v.attr_input_type eq 0">手工输入 <elseif condition="$v.attr_input_type eq 1" />选择输入 <else/> 多行文本输入</if>
						</td>
						<td title="{$v.attr_values}">{$v.attr_values}</td>
						<td>{$v.sort_order}</td>
						<td>
							<a href="{:U("Admin/goodstype/attrbute_edit",array('id'=>$v['attr_id']))}" class="btn btn-transparent btn-xs" tooltip-placement="top" data-toggle="tooltip" data-original-title="编辑"><i class="fa fa-pencil"></i></a>
							<a href="{:U("Admin/goodstype/attrbute_del",array('id'=>$v['attr_id']))}" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove" onclick="return confirm('确定删除该属性？')"  tooltip-placement="top" data-toggle="tooltip" data-original-title="删除"><i class="fa fa-minus-square"></i></a>
						</td>
					</tr>
				</volist>
				</tbody>
			</table>

<if condition="empty($attrList)">
暂无数据
</if>	
						<!-- end: YOUR CONTENT HERE -->
						 
 <div class="col-md-12 pages" align="center">{$page}</div>

					</div>
				</div>
			</div>
			<!--  FOOTER and SETTINGS -->
			
           <include file="Public/footer"/>
			<!-- end: FOOTER -->
			<!-- start: OFF-SIDEBAR -->
			
			<!-- end: OFF-SIDEBAR -->
			
		</div>
		<!-- start: MAIN JAVASCRIPTS -->

         <include file="Public/javascript"/>	
		<!-- end: CLIP-TWO JAVASCRIPTS -->
	</body>
</html>
